package com.yt.lxh.model.product;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yt.lxh.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author yzk789
 * @since 2023-10-18
 */
@Data
@ApiModel(description = "口味属性")
@TableName("taste_attr")
public class TasteAttr extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 口味属性
     */
    @ApiModelProperty(value = "口味属性")
    private String attrName;

    /**
     * 是否额外加价(1：是 / 0：否)
     */
    @ApiModelProperty(value = "是否额外加价(1：是 / 0：否)")
    @TableField("is_extra")
    private Boolean extra;

    /**
     * 额外加价的价格
     */
    @ApiModelProperty(value = "额外加价的价格")
    private BigDecimal extraPrice;

    /**
     * 口味ID
     */
    @ApiModelProperty(value = "所属口味ID外键")
    private String tasteId;

    /**
     * 排序权重
     */
    @ApiModelProperty(value = "排序权重")
    private Integer sort;

}
